//==============================================================================
// Copyright 2009 Sidney Shek All Rights Reserved
//==============================================================================
// SYSTEM:        ITEC824-MajorProject-Server
// FILE NAME:	  Group.java
// DESCRIPTION:   
// AUTHOR:        sshek2
// CREATED:       17/04/2009
//
// REVISION HISTORY:
// $Author: $
// $Id:  $
//
//==============================================================================
//

package itec824.server.model;

import itec824.common.model.User;

import java.util.Collection;

/**
 * Contains information about a group. A group is a set of users that are
 * managed by a manager. The manager is responsible for approving the users'
 * timesheets.
 *
 * @version $Revision: $
 * @author sshek2
 */
public class Group
{
    /**
     * @return Returns the groupId.
     */
    public long getGroupId()
    {
        return myGroupId;
    }
    /**
     * @param aGroupId The groupId to set.
     */
    public void setGroupId(long aGroupId)
    {
        myGroupId = aGroupId;
    }
    /**
     * @return Returns the manager.
     */
    public User getManager()
    {
        return myManager;
    }
    /**
     * @param aManager The manager to set.
     */
    public void setManager(User aManager)
    {
        myManager = aManager;
    }
    /**
     * @return Returns the groupName.
     */
    public String getGroupName()
    {
        return myGroupName;
    }
    /**
     * @param aGroupName The groupName to set.
     */
    public void setGroupName(String aGroupName)
    {
        myGroupName = aGroupName;
    }
    /**
     * @return Returns the members.
     */
    public Collection<User> getMembers()
    {
        return myMembers;
    }
    /**
     * @param aMembers The members to set.
     */
    public void setMembers(Collection<User> aMembers)
    {
        myMembers = aMembers;
    }
    private User myManager;
    private String myGroupName;
    private Collection<User> myMembers;
    private long myGroupId;
}
